﻿@using WebSite.ViewModels.EditViewModels.EditGridViewModels;
@using Telerik.Web.Mvc.UI;
@using Telerik.Web.Mvc.UI.Fluent;

@model IEditGridViewModel

@if (Model.ContainsTipo)
{
    <script type='text/javascript'>
        function @(Model.JavascriptFunctionName)(e)
        {
            if (e.dataItem)
            {
                $(e.form).find('#tipo').data('tDropDownList').select(function (dataItem)
                {
                    return dataItem.Text == e.dataItem['Tipo'];
                });
            }
        }
    </script>
}

@{ Model.RenderGrid(Html); }